package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.entity.GptSpiderClass;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类信息对象 gpt_txt_class_detail
 * 
 * @author zhuzi
 * @date 2023-12-23
 */
public class GptTxtClassDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类id */
    private Long id;

    /**创建生成id**/
    private Long fileId;

    /** 分类项id */
    @Excel(name = "分类项id")
    private Long itemId;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 排序 */
    private Integer orderNum;

    /** 备注 */
    private String ramark;

    private String itemName;

    /** 子菜单 */
    private List<GptTxtClassDetail> children = new ArrayList<GptTxtClassDetail>();

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setRamark(String ramark) 
    {
        this.ramark = ramark;
    }

    public String getRamark() 
    {
        return ramark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemId", getItemId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("status", getStatus())
            .append("orderNum", getOrderNum())
            .append("createTime", getCreateTime())
            .append("ramark", getRamark())
            .toString();
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public List<GptTxtClassDetail> getChildren() {
        return children;
    }

    public void setChildren(List<GptTxtClassDetail> children) {
        this.children = children;
    }
}
